package com.alinesno.cloud.gateway.admin.entity;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Entity;
import com.alinesno.cloud.common.facade.orm.entity.BaseEntity;


/**
 * <p>
 * 
 * </p>
 *
 * @author WeiXiaoJin
 * @since 2020-01-31 20:14:32
 */
@Entity
@Table(name="gate_zuul_routes")
public class GateZuulRoutesEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 路径
     */
	private String path;
    /**
     * 服务
     */
	@Column(name="service_id")
	private String serviceId;
    /**
     * 链接
     */
	private String url;
    /**
     * 前缀
     */
	@Column(name="strip_prefix")
	private Integer stripPrefix;
    /**
     * 是否可重试
     */
	private Integer retryable;
    /**
     * 头部
     */
	@Column(name="sensitive_headers")
	private String sensitiveHeaders;


	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getServiceId() {
		return serviceId;
	}

	public void setServiceId(String serviceId) {
		this.serviceId = serviceId;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getStripPrefix() {
		return stripPrefix;
	}

	public void setStripPrefix(Integer stripPrefix) {
		this.stripPrefix = stripPrefix;
	}

	public Integer getRetryable() {
		return retryable;
	}

	public void setRetryable(Integer retryable) {
		this.retryable = retryable;
	}

	public String getSensitiveHeaders() {
		return sensitiveHeaders;
	}

	public void setSensitiveHeaders(String sensitiveHeaders) {
		this.sensitiveHeaders = sensitiveHeaders;
	}


	@Override
	public String toString() {
		return "GateZuulRoutesEntity{" +
			"path=" + path +
			", serviceId=" + serviceId +
			", url=" + url +
			", stripPrefix=" + stripPrefix +
			", retryable=" + retryable +
			", sensitiveHeaders=" + sensitiveHeaders +
			"}";
	}
}
